class UpdateFindings < ActiveRecord::Migration
    def self.up
        add_column :findings, :title, :string
        rename_table :findings, :gists
        rename_table :findings_tags, :gists_tags
        rename_column :gists_tags, :finding_id, :gist_id
    end

    def self.down
        rename_column :gists_tags, :gist_id, :finding_id
        rename_table :gists, :findings
        rename_table :gists_tags, :findings_tags
        remove_column :findings, :title        
    end
end
